<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="taglib.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css" media="all">
      @import url("./css/maven-base.css");
      @import url("../css/maven-theme.css");
      @import url("../css/site.css");
      @import url("./css/screen.css");
</style>
<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
<link rel="stylesheet" href="../style.css" type="text/css" media="screen" />
<title>Registro</title>
<script type="text/javascript">
 function comparar(){
 	if (document.forms[0].txtUsuario.value != "" && document.forms[0].txtPassword.value != ""){
 		return true;
 		}else{
 		alert("Datos insuficientes para registrar");
 		document.forms[0].txtUsuario.focus;
 		return false;
 	}
 	
 	if (document.forms[0].txtPassword.value == document.forms[0].txtPassword1.value){
 		return true;
 		}else{
 		alert("Los campos de Contrasenia no son iguales");
 		document.forms[0].txtPassword.focus;
 		return false;
 	}
 	return false;
 }
</script>
</head>
<body>
<br/><br/><br/>
<div id="page">
<center>
<h3>Registro de Usuarios</h3>
<br>
	<form name ="formulario" action="../UsuarioController.html?opcion=Guardar">
		<table border="2">
		
		<tr>
			<td>Usuario</td><td><input type="text" name="txtUsuario"/></td>
		</tr>
		<tr>
			<td>Password</td><td><input type="password" name="txtPassword"/></td>
		</tr>
		<tr>
			<td>Confirmar</td><td><input type="password" name="txtPassword1"/></td>
		</tr>
		<tr>
			<td colspan="2"><center><input type="submit" name="boton" value="Guardar" onclick="return comparar()"/></center></td>
		</tr>
		<tr>
			<td><center><a href="./menuadmin.jsp">Regresar</a></center></td>
		</tr>
		</table>
	</form>
</center>
<div id="footer"> <center> <font color="Silver">Powered By Hibernate</font></center></div>
</div>
</body>
</html>